<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    
  </style>
</head>
<body>
  这是首页
</body>
<script>

  const token = localStorage.getItem("token")

  const xhr = new XMLHttpRequest();
  xhr.open("get", "http://localhost:3000/getuser?token="+token);
  xhr.onload = function(){
    console.log(xhr.responseText);
  }
  xhr.send();
  
</script>
</html>